import React from 'react'
import { cn } from 'clsx-for-tailwind'

export interface LinkProps {
    url: string
    children: React.ReactNode,
    classTextColor?: string,
    classBgColor?: string
}

export function Link ({ url,children,classTextColor,classBgColor }: LinkProps) {
    return (
        <>
            <a className={cn('px-2 py-3 text-white', classTextColor, classBgColor)}
               href={url}>
                {children}
            </a>
        </>
    )
}
